/**
 * 
 */
package com.gxt;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * @author JasonGuo
 * @Description:
 */
@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {

	@Override
	public void addResourceHandlers(ResourceHandlerRegistry registry) {
		registry.addResourceHandler("/**")
				.addResourceLocations("file:E:/gxt_videos/")
				.addResourceLocations("classpath:/META-INF/resources/");
//												添加classpath防止swagger2页面失效
//												!记得最后加/
	}
	
}
